package riki.org.com.command
{
	import riki.org.com.net.Red5Connect;
	
	public class NcSend
	{
		/**
		 * 升级当前用户为管理员
		 * */
		public static function loginWithAdmin(rFun:String):void
		{
			trace("send->loginWithAdmin->rFun:"+rFun);
			Red5Connect.GetNc().sendCommand("AdminApplication","loginWithAdmin",rFun,"admin","admin");
		}
		
		public static function getServerApplicationInfo(appName:String):void
		{
			//如果信息已取到，则不向服务器获取消息
			Red5Connect.GetNc().sendCommand("AdminApplication","getAppInfo","onServerError",appName);
			trace("send->getServerApplicationInfo->appName:"+appName);
		}
	}
}